package com.sq.util;

import java.io.File;

import com.sq.util.encrypt.SignUtil;

/**
 * @author sq
 *
 */
public class FileUtil {

    public static void makeParentDir(File file) {
        File dir = new File(file.getParent());
        if (!dir.exists()) {
            dir.mkdirs();
        }
    }

    public static String getFileMd5(File file) {
        return SignUtil.md5(file);
    }
}
